from zope.schema.vocabulary import SimpleTerm, SimpleVocabulary
from zope.app.schema.vocabulary import IVocabularyFactory
from zope.interface import implements
from my315ok.goodfccontent import goodfccontentMessageFactory as _


Title=[
('male','male',_(u'gentleman')),
('female','female',_(u'lady')),
  ]
Title_terms = [
    SimpleTerm(value, token, title) for value, token, title in Title
]    

     
class TitleVocabulary(object):
    
    """ Title vacabulary """

    implements(IVocabularyFactory)

    def __call__(self, context):
        return SimpleVocabulary(Title_terms)  
    

TitleVocabularyFactory = TitleVocabulary()
